package io.qiezi.scala.collection

object Mutation {
  def main(args: Array[String]): Unit = {
    val list = List[Int](1, 2, 3, 4, 5, 6)
    val array = Array[Int](1, 2, 3, 4, 5, 6)

    list.map{i => println("hi"); i + 1}
    println("---------------------------------------")
    list.map{println("hi"); _+1}
    println("---------------------------------------")
//    val MONTH = 1
//    val (HOUR, MINUTE, SECOND) = (1,2,3)
    array(1) = 3
    array.foreach(println)

//    Map(1 => "a", 2 => "b", 3 => "c")
  }
}
